package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.util.Date;
import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.SalaryChangesExample.E_CHANGE_REASON;
import static org.jsola.hr.example.SalaryChangesExample.E_CHANGE_TYPE;
import static org.jsola.hr.example.SalaryChangesExample.E_COMPANY_ID;
import static org.jsola.hr.example.SalaryChangesExample.E_EFFECTIVE_DATE;
import static org.jsola.hr.example.SalaryChangesExample.E_EFFECTIVE_STATUS;
import static org.jsola.hr.example.SalaryChangesExample.E_EMP_ID;
import static org.jsola.hr.example.SalaryChangesExample.E_MEAL_SUBSIDY_NEW;
import static org.jsola.hr.example.SalaryChangesExample.E_REMARK;
import static org.jsola.hr.example.SalaryChangesExample.E_SALARY_NEW;
import static org.jsola.hr.example.SalaryChangesExample.E_SALARY_PERFORMANCE_NEW;
import static org.jsola.hr.example.SalaryChangesExample.E_SALARY_TOTAL_NEW;
import static org.jsola.hr.example.SalaryChangesExample.E_TRAFFIC_SUBSIDY_NEW;
import static org.jsola.hr.example.SalaryChangesExample.M_CHANGE_REASON_MAX;
import static org.jsola.hr.example.SalaryChangesExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.SalaryChangesExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.SalaryChangesExample.M_EMP_ID_MAX;
import static org.jsola.hr.example.SalaryChangesExample.M_EMP_ID_NOT_NULL;
import static org.jsola.hr.example.SalaryChangesExample.M_REMARK_MAX;
import static org.jsola.hr.example.SalaryChangesExample.N_CHANGE_REASON;
import static org.jsola.hr.example.SalaryChangesExample.N_CHANGE_TYPE;
import static org.jsola.hr.example.SalaryChangesExample.N_COMPANY_ID;
import static org.jsola.hr.example.SalaryChangesExample.N_EFFECTIVE_DATE;
import static org.jsola.hr.example.SalaryChangesExample.N_EFFECTIVE_STATUS;
import static org.jsola.hr.example.SalaryChangesExample.N_EMP_ID;
import static org.jsola.hr.example.SalaryChangesExample.N_MEAL_SUBSIDY_NEW;
import static org.jsola.hr.example.SalaryChangesExample.N_REMARK;
import static org.jsola.hr.example.SalaryChangesExample.N_SALARY_NEW;
import static org.jsola.hr.example.SalaryChangesExample.N_SALARY_PERFORMANCE_NEW;
import static org.jsola.hr.example.SalaryChangesExample.N_SALARY_TOTAL_NEW;
import static org.jsola.hr.example.SalaryChangesExample.N_TRAFFIC_SUBSIDY_NEW;

/**
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【员工调薪记录】的参数")
@Data
public class SalaryChangesAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_EMP_ID, example = E_EMP_ID, required = true)
    @NotNull(message = M_EMP_ID_NOT_NULL)
    @Length(max = 32, message = M_EMP_ID_MAX)
    private String empId;

    @ApiModelProperty(notes = N_EFFECTIVE_STATUS, example = E_EFFECTIVE_STATUS)
    private Boolean effectiveStatus;

    @ApiModelProperty(notes = N_EFFECTIVE_DATE, example = E_EFFECTIVE_DATE)
    private Date effectiveDate;

    @ApiModelProperty(notes = N_CHANGE_REASON, example = E_CHANGE_REASON)
    @Length(max = 255, message = M_CHANGE_REASON_MAX)
    private String changeReason;

    @ApiModelProperty(notes = N_SALARY_NEW, example = E_SALARY_NEW)
    private Integer salaryNew;

    @ApiModelProperty(notes = N_TRAFFIC_SUBSIDY_NEW, example = E_TRAFFIC_SUBSIDY_NEW)
    private Integer trafficSubsidyNew;

    @ApiModelProperty(notes = N_MEAL_SUBSIDY_NEW, example = E_MEAL_SUBSIDY_NEW)
    private Integer mealSubsidyNew;

    @ApiModelProperty(notes = N_SALARY_PERFORMANCE_NEW, example = E_SALARY_PERFORMANCE_NEW)
    private Integer salaryPerformanceNew;

    @ApiModelProperty(notes = N_SALARY_TOTAL_NEW, example = E_SALARY_TOTAL_NEW)
    private Integer salaryTotalNew;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 255, message = M_REMARK_MAX)
    private String remark;

    @ApiModelProperty(notes = N_CHANGE_TYPE, example = E_CHANGE_TYPE)
    private Integer changeType;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;


}

